package com.aaa.common.util;

/**
 * @author Xiujie Yu
 * @Date 2021-01-19
 * @Time 16:21
 */
public class CustomException extends RuntimeException {

    private int errorCode;
    private String errorMessage;

    public CustomException(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
